package org.xx.armory.swing.builders;

import org.xx.armory.objectparser.ParsedObject;
import org.xx.armory.objectparser.ParsedObjectBuilder;

public abstract class ComponentModelBuilder<T extends ParsedObject & ComponentModel>
        extends ParsedObjectBuilder<T> {
    private String name;
    private boolean visible;

    protected ComponentModelBuilder() {
        this.name = "";
        this.visible = true;
    }

    public final String getName() {
        return this.name;
    }

    public final ComponentModelBuilder setName(
            String name
    ) {
        this.name = name;
        return this;
    }

    public final boolean isVisible() {
        return this.visible;
    }

    public final ComponentModelBuilder setVisible(
            boolean visible
    ) {
        this.visible = visible;
        return this;
    }
}
